package com.jxk.zuul.config;

import com.jxk.zuul.filter.AuthFilter;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class BasicConf {
    // API接口白名单, 多个用逗号分隔
    @Value("${apiWhiteStr}")
    private String apiWhiteStr;
    @Bean
    public AuthFilter authFilter() {
        return new AuthFilter();
    }
}
